package cn.ilikes.tools.nosql.test.jpa.pojos;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import cn.ilikes.tools.nosql.jpa.annotations.IndexColumn;

@Entity
@Table(name = "pe_employee_peplan_status", schema = "ilikes")
public class EmployeePePlanStatus {

	@Id
	@IndexColumn(index = IndexColumn.Index.analyzed, name = "id", store = IndexColumn.Store.yes)
	private Integer uuid;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "employee_member_id")
	@IndexColumn(index = IndexColumn.Index.not_analyzed, name = "employeeMemberId", store = IndexColumn.Store.no)
	private EmployeeMember employeeMember;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "employee_group_peplan_map_id")
	@IndexColumn(index = IndexColumn.Index.not_analyzed, name = "employee_group_peplan_map_id", store = IndexColumn.Store.no)
	private EmployeeGroupPlanMap EmployeeGroupPlanMap;

	public Integer getUuid() {
		return uuid;
	}

	public void setUuid(Integer uuid) {
		this.uuid = uuid;
	}

	public EmployeeMember getEmployeeMember() {
		return employeeMember;
	}

	public void setEmployeeMember(EmployeeMember employeeMember) {
		this.employeeMember = employeeMember;
	}

	public EmployeeGroupPlanMap getEmployeeGroupPlanMap() {
		return EmployeeGroupPlanMap;
	}

	public void setEmployeeGroupPlanMap(EmployeeGroupPlanMap employeeGroupPlanMap) {
		EmployeeGroupPlanMap = employeeGroupPlanMap;
	}

}